clear all
set more off

program main
    * *** Add required packages from SSC to this list ***
    local ssc_packages "estout saveold reghdfe ranktest tmpdir ftools"
    * *** Add required packages from SSC to this list ***

    if !missing("`ssc_packages'") {
        foreach pkg in "`ssc_packages'" {
        * install using ssc, but avoid re-installing if already present
            capture which `pkg'
            if _rc == 111 {                 
               dis "Installing `pkg'"
               quietly ssc install `pkg', replace
               }
        }
    }

	* Install Modern Scheme
	
	quietly	net install scheme-modern, from("https://raw.githubusercontent.com/mdroste/stata-scheme-modern/master/")

	* Add ado-path for additional ado files
	
	adopath + "~/ado/"
end

main


